// **********************************************************************
//                            Project Nitro
//                        ---------------------
//
//  File        : CarResources.h
//  Description : Car resources
//  Author      : Guillaume Delhumeau <guillaume.delhumeau@gmail.com>
//  License     : GNU General Public License 3
//
// **********************************************************************

#ifndef _CAR_RESOURCES_H_
#define _CAR_RESOURCES_H_

#include <ClanLib/display.h>
#include "Screen.h"

class CarResources{

public:
	CarResources();

	inline CL_Sprite & get_body() { return _body; }

	inline CL_Sprite & get_wheel() { return _wheel; }

	inline int get_center_x() const { return _center_x; }

	inline int get_center_z() const { return _center_z; }

	void load_resources(Screen & screen, std::string filename);	

	bool is_loaded() const { return _loaded; }

private:
	CL_Sprite _body;
	CL_Sprite _wheel;

	bool _loaded;

	int _center_x;
	int _center_z;
	int _left_wheel_x;
	int _left_wheel_z;
	int _right_wheel_x;
	int _right_wheel_z;

};

#endif
